package com.polaris.live.viewmodel

import androidx.lifecycle.MutableLiveData
import com.polaris.live.common.network.request
import com.polaris.live.common.network.state.ResultState
import com.polaris.live.net.userService
import com.polaris.live.resp.go_resp.ThirdBindBean
import com.polaris.live.viewmodel.login.LoginViewModel

/**
 * TaskModel
 *
 * @author Created by 半仙 on 2023/10/18/018 10:35
 */
class TaskModel : LoginViewModel() {
    /**
     * google绑定
     */
    val googleBindLiveData = MutableLiveData<ResultState<Any>>()
    fun googleBind(id: String, token: String) {
        val loginPhoneBean = ThirdBindBean(id, token, 1)
        request({ userService.thirdBind(loginPhoneBean) }, googleBindLiveData)
    }
}